﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Controls;

namespace ConfigCreate
{
    /// <summary>
    /// 添加DockPanel到大类别
    /// </summary>
    [AttributeUsage(AttributeTargets.Property, AllowMultiple = true)]
    public class CreateDockPanel : Attribute
    {
        /// <summary>
        /// 添加DockPanel到大类别
        /// </summary>
        /// <param name="dock_panel_key">DockPanel面板Key</param>
        public CreateDockPanel(string dock_panel_key)
        {
            DockPanelKey = dock_panel_key;
        }



        /// <summary>
        /// DockPanel面板Key
        /// </summary>
        public string DockPanelKey { get; set; } = string.Empty;
        /// <summary>
        /// 依靠类型
        /// </summary>
        public Dock Dock { get; set; }
        /// <summary>
        /// 宽度
        /// </summary>
        public double Width { get; set; } = double.NaN;
        /// <summary>
        /// 高度
        /// </summary>
        public double Height { get; set; } = double.NaN;
        /// <summary>
        /// 父容器的Key
        /// </summary>
        public string? ParentKey { get; set; }
    }
}
